import React from "react";
import "./assets/base.css";
import { GlobalStyle } from "./style";
import { renderRoutes } from "react-router-config";
import { IconStyle } from "./assets/iconfont/iconfont";

import routes from "./routes";
import { Provider } from "react-redux";
import { BrowserRouter } from "react-router-dom";
import store from "./store";
import { Data } from "./application/Singers/data.jsx";
const App = () => {
  return (
    <Provider store={store}>
      <BrowserRouter className="App">
        <GlobalStyle />
        <IconStyle />
        <Data>{renderRoutes(routes)}</Data>
      </BrowserRouter>
    </Provider>
  );
};
export default App;
